package cn.lzj.service.User.impl.product;

import cn.lzj.mapper.ProductMapper;
import cn.lzj.mapper.ProductTypeMapper;
import cn.lzj.pojo.PayTable;
import cn.lzj.pojo.ProductBase;
import cn.lzj.pojo.ProductType;
import cn.lzj.service.User.PayTableService;
import cn.lzj.service.User.ProductTypeService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class productTypeServiceImpl implements ProductTypeService {

    @Resource
    private ProductTypeMapper productTypeMapper;

    @Override
    public ProductType selectProductByName(String productName) {
        return productTypeMapper.selectTypeByName(productName);
    }

    @Override
    public ProductType selectProductById(Integer productTypeId) {
        return productTypeMapper.selectTypeById(productTypeId);

    }
}
